package edu.dayu.service.impl;

import edu.dayu.mapper.UserMapper;
import edu.dayu.pojo.User;
import edu.dayu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean userInsert(User user) {
        return userMapper.userInsert(user);
    }

    @Override
    public User login(User user) {
        return userMapper.login(user);
    }
}
